package com.moyu.entity;

public class People implements Comparable<People>{
    int point;
    String name;

    public People(int point, String name) {
        this.point = point;
        this.name = name;
    }

    @Override
    public String toString() {
        return name+" " +point;
    }

    @Override
    public int compareTo(People o) {
        return point - o.point;
    }
}
